package com.jian.java.main;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author Jiange
 * @create 2021-05-30-17:51
 */
@SpringBootApplication(scanBasePackages = {"com.jian.java"})
@EnableEurekaClient
@EnableFeignClients(basePackages = {"com.jian.java"})
@EnableDiscoveryClient
@EnableHystrix
//@RibbonClient(name = "DEPT")
public class ConsumerApp {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerApp.class);
    }
}
